package com.sbpm.crmbpm.client.providers;

import com.google.gwt.editor.client.Editor;
import com.sbpm.crmbpm.shared.data.client.Company;
import com.sbpm.crmbpm.shared.data.client.CompanyType;
import com.sbpm.crmbpm.shared.data.client.Segment;
import com.sencha.gxt.core.client.ValueProvider;
import com.sencha.gxt.data.shared.LabelProvider;
import com.sencha.gxt.data.shared.ModelKeyProvider;
import com.sencha.gxt.data.shared.PropertyAccess;

public interface CompanyProperties extends PropertyAccess<Company>
{
    @Editor.Path("id")
    ModelKeyProvider<Company> key();

    @Editor.Path("name")
    LabelProvider<Company> nameLabel();


    ValueProvider<Company, Long> id();
    ValueProvider<Company, String> name();
    ValueProvider<Company, CompanyType> type();
    ValueProvider<Company, String> inn();
    ValueProvider<Company, String> kpp();
    ValueProvider<Company, String> ogrn();
    ValueProvider<Company, String> legalName();
    ValueProvider<Company, Segment> segment();

}
